package day03;
// 关系运算符的演示
public class OperDemo02 {
    public static void main(String[] args) {
        //2) 关系运算符: >, <, >=, <=, ==, !=
        int a=5, b=10, c=5;
        boolean b1 = a>b;
        System.out.println(b1);  //false
        System.out.println(c<b); //true
        System.out.println(a>=c); //true
        System.out.println(a<=b); //true
        System.out.println(a==c); //true
        System.out.println(a!=b); //true
        System.out.println(a%2==0); //5取余2,余1,1>0 false
        System.out.println(a+c>b); //5+5>10 false
        System.out.println(a++>5); //a++的值为5 5>5 false --- a自增1得6
        //System.out.println(++a>5); //true ++a的值为6 6>5 true
        System.out.println(a++>5); //true a++的值为6 6>5 true --- a自增1的7
        System.out.println(a); //7
    }
}
